//
//  UIView+view.h
//  HA
//
//  Created by sy on 2023/12/17.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^TapAction)(void);

@interface UIView (view)

/**
 *  切按钮圆角的方法
 *
 *  @param corners     哪里要切圆角,左上/左下/右上/右下
 *  @param cornerRadii 圆角的度数
 */
- (void)makeRoundingCorners:(UIRectCorner)corners cornerRadii:(CGFloat)cornerRadii;

#pragma mark - 添加单击手势
- (void)tapHandle:(TapAction)block;

+ (UIView *)ha_createView;


+ (UIImageView *)ha_createImageView;



+(UILabel *)ha_NLabelWithFont:(CGFloat)font textColor:(id)textColor text:(NSString *)text alignment:(NSTextAlignment)alignment;

+(UILabel *)ha_BLabelWithFont:(CGFloat)font textColor:(id)textColor text:(NSString *)text alignment:(NSTextAlignment)alignment;



@end

NS_ASSUME_NONNULL_END
